import { Component } from '@angular/core';
import { NavController, NavParams } from 'ionic-angular';
import { DomSanitizer } from '@angular/platform-browser';


/**
 * Generated class for the WebviewPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@Component({
  selector: 'page-webview',
  templateUrl: 'webview.html',
})
export class WebviewPage {

  public url:any;
  public title:string;
  constructor(public navCtrl: NavController, public navParams: NavParams, private sanitize: DomSanitizer) {
    this.url = this.sanitize.bypassSecurityTrustResourceUrl(navParams.get('url'));
    this.title = navParams.get('title')
  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad WebviewPage');
  }

}
